package com.egao.common.module.integral.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生积分表实体类
 * @author pyx
 * @date 2021/4/30
 */
@ApiModel(description = "积分")
@TableName("integral")
@Data
public class Integral implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学生ID")
    private Integer studentId;

    @ApiModelProperty(value = "类型",notes = "1讲座")
    private Integer type;

    @ApiModelProperty("业务id")
    private Integer businessId;

    @ApiModelProperty("积分")
    private Integer integral;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;
}
